* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #root, .wrap {
  width: 100%;
  height: 100%;
}

.home-page {
  display: flex;
  flex-direction: column;
}

.home-page main {
  flex: 1;
  overflow: auto;
}

.home-page footer {
  height: 45px;
  line-height: 45px;
  display: flex;
}

.home-page footer a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #333333;
}

.home-page footer a.active {
  background: royalblue;
  color: white;
}

.main-page, .cart-page {
  width: 100%;
  height: 100%;
}

.main-page .cart-p, .cart-page .cart-p {
  width: 100%;
  height: 50px;
  background: #eee;
  line-height: 50px;
  position: fixed;
  bottom: 45px;
}

.main-page .cart-p span, .cart-page .cart-p span {
  margin: 0 210px 0 5px;
}

.main-page .item, .cart-page .item {
  display: flex;
}

.main-page .item dt, .cart-page .item dt {
  flex: 1;
  text-align: center;
}

.main-page .item dd, .cart-page .item dd {
  flex: 2;
}

.main-page .item button, .cart-page .item button {
  width: 40px;
  height: 40px;
  color: white;
  outline: none;
  background: lightcoral;
  border: 0;
}

.main-page .items, .cart-page .items {
  display: flex;
}

.main-page .items p, .cart-page .items p {
  display: flex;
  align-items: center;
  flex: 1;
  text-align: center;
}

.main-page .items dt, .cart-page .items dt {
  flex: 1;
  text-align: center;
}

.main-page .items dd, .cart-page .items dd {
  flex: 6;
}

.main-page .items button, .cart-page .items button {
  width: 30px;
  height: 30px;
  color: white;
  outline: none;
  background: lightcoral;
  border: 0;
}

.main-page button, .cart-page button {
  background: #cccccc;
}
